package com.heking.zplayer.qlyopen;

import java.util.Objects;

/**
 * @Author: zhoug
 * @Date: 2024-11-05
 * @Description:
 */
public class QlyPlaySource {
    private String deviceId;
    private String token;

    public String getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(String deviceId) {
        this.deviceId = deviceId;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getMacByDeviceId() {
        return ZQlyOpenSdk.getMacByDeviceId(deviceId);
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        QlyPlaySource that = (QlyPlaySource) o;
        return Objects.equals(deviceId, that.deviceId) ;
    }


}
